import { request } from "../request"
// 上传图片
export const uploadAvatar = (data) => {
  return request({
    url: 'api/uploadAvatar',
    method: 'POST',
    data
  })
}
// 获取首页轮播图
export const homeSlideshow = (data) => {
  return request({
    url: 'api/homeSlideshow',
    method: 'POST',
    data
  })
}
// 添加首页轮播图
export const homeSlideshowAdd = (data) => {
  return request({
    url: 'api/homeSlideshowAdd',
    method: 'POST',
    data
  })
}
// 删除首页轮播图
export const homeSlideshowDelete = (data) => {
  return request({
    url: 'api/homeSlideshowDelete',
    method: 'POST',
    data
  })
}
// 修改
export const homeSlideshowChange = (data) => {
  return request({
    url: 'api/homeSlideshowChange',
    method: 'POST',
    data
  })
}
// 修改顺序
export const homeSlideshowChangeSort = (data) => {
  return request({
    url: 'api/homeSlideshowChangeSort',
    method: 'POST',
    data
  })
}

// 获取首页案例接口
export const homeCase = (data) => {
  return request({
    url: 'api/homeCase',
    method: 'POST',
    data
  })
}
// 首页案例添加
export const homeCaseAdd = (data) => {
  return request({
    url: 'api/homeCaseAdd',
    method: 'POST',
    data
  })
}

// 首页案例删除
export const homeCaseDelete = (data) => {
  return request({
    url: 'api/homeCaseDelete',
    method: 'POST',
    data
  })
}
// 首页案例修改
export const homeCaseChange = (data) => {
  return request({
    url: 'api/homeCaseChange',
    method: 'POST',
    data
  })
}
// 首页案例修改顺序
export const homeCaseChangeSort = (data) => {
  return request({
    url: 'api/homeCaseChangeSort',
    method: 'POST',
    data
  })
}


// 获取首页案例视频接口
export const homeCaseVideo = (data) => {
  return request({
    url: 'api/homeCaseVideo',
    method: 'POST',
    data
  })
}
// 首页案例视频添加
export const homeCaseVideoAdd = (data) => {
  return request({
    url: 'api/homeCaseVideoAdd',
    method: 'POST',
    data
  })
}

// 首页案例视频删除
export const homeCaseVideoDelete = (data) => {
  return request({
    url: 'api/homeCaseVideoDelete',
    method: 'POST',
    data
  })
}
// 首页案例视频修改
export const homeCaseVideoChange = (data) => {
  return request({
    url: 'api/homeCaseVideoChange',
    method: 'POST',
    data
  })
}
// 首页案例视频修改顺序
export const homeCaseVideoChangeSort = (data) => {
  return request({
    url: 'api/homeCaseVideoChangeSort',
    method: 'POST',
    data
  })
}




// 首页膜类型
export const homeFilm = (data) => {
  return request({
    url: 'api/homeFilm',
    method: 'POST',
    data
  })
}
// 首页膜类型添加
export const homeFilmAdd = (data) => {
  return request({
    url: 'api/homeFilmAdd',
    method: 'POST',
    data
  })
}

// 首页膜类型删除
export const homeFilmDelete = (data) => {
  return request({
    url: 'api/homeFilmDelete',
    method: 'POST',
    data
  })
}
// 首页膜类型修改
export const homeFilmChange = (data) => {
  return request({
    url: 'api/homeFilmChange',
    method: 'POST',
    data
  })
}
// 首页膜类型修改顺序
export const homeFilmChangeSort = (data) => {
  return request({
    url: 'api/homeFilmChangeSort',
    method: 'POST',
    data
  })
}
